var loggerError = require('./winston-date').loggerError;// 自定义打印 包含日志文件分割功能

var appConfig = {
    errorJson: function (e) {
        console.log("appConfig-errorJson", e);
        loggerError.error("系统出错", e);
        return {
            code: 500,
            data: "",
            msg: "系统错误"
        }
    },
    successJson: function () {
        return {
            code: 200,
            data: "",
            msg: ""
        }
    }
}
module.exports = appConfig;